home *** CD-ROM | disk | FTP | other *** search
Wrap
sssseeeettttllllaaaabbbbeeeellll((((3333CCCC)))) sssseeeettttllllaaaabbbbeeeellll((((3333CCCC)))) NNNNAAAAMMMMEEEE _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll - define the label for _pppp_ffff_mmmm_tttt and _llll_ffff_mmmm_tttt. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_pppp_ffff_mmmm_tttt_...._hhhh_>>>> _iiii_nnnn_tttt _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll_((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_l_a_b_e_l_))))_;;;; DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN The routine _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll defines the label for messages produced in standard format by subsequent calls to _llll_ffff_mmmm_tttt, _vvvv_llll_ffff_mmmm_tttt, _pppp_ffff_mmmm_tttt, and _vvvv_pppp_ffff_mmmm_tttt. _l_a_b_e_l is a character string no more than 25 characters in length. No label is defined before _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll is called. A null pointer or an empty string passed as argument will reset the definition of the label. EEEEXXXXAAAAMMMMPPPPLLLLEEEE The following code (without previous call to _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll): pfmt(stderr, MM_ERROR, "test:2:Cannot open file\n"); setlabel("UX:test"); pfmt(stderr, MM_ERROR, "test:2:Cannot open file\n"); will produce the following output: ERROR: Cannot open file UX:test: ERROR: Cannot open file SSSSEEEEEEEE AAAALLLLSSSSOOOO _gggg_eeee_tttt_oooo_pppp_tttt(3C), _llll_ffff_mmmm_tttt(3C), _pppp_ffff_mmmm_tttt(3C) DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll returns 0 in case of success, non-zero otherwise. NNNNOOOOTTTTEEEESSSS The label should be set once at the beginning of a utility and remain constant. _gggg_eeee_tttt_oooo_pppp_tttt(3C) has been modified to report errors using the standard message format. If _ssss_eeee_tttt_llll_aaaa_bbbb_eeee_llll is called before _gggg_eeee_tttt_oooo_pppp_tttt, _gggg_eeee_tttt_oooo_pppp_tttt will use that label. Otherwise, _gggg_eeee_tttt_oooo_pppp_tttt will use the name of the utility. PPPPaaaaggggeeee 1111